package messengerserver;

import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Samus
 */
public class Main {

    public static void main(String[] args) throws Exception {
        try {
            Server s = new Server();
            Registry r = LocateRegistry.createRegistry(9999);
            r.rebind(Server.REBIND_NAME, s);
            System.out.println("Awaiting Instructions...");
        } catch (RemoteException ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
